<?php
/*
 * ditch 控制器
 */
require_once APP_ROOT.'/include/action/commonAction.php';
class Ditches_Action extends commonAction{

	function index(){
		$page_title = '渠道管理';
		extract($this -> options_cache);
		$site_title = $page_title . ' - ' . $site_name;

		$Ditches_Model = new Ditches_Model();
		$sqlSegment = " ORDER BY did ASC ";
		$ditches = $Ditches_Model -> getDatas($sqlSegment);
		include View::getView('ditches_index');
	}

	function edit(){
		$page_title = '编辑渠道';
		extract($this -> options_cache);
		$site_title = $page_title . ' - ' . $site_name;

		include View::getView('ditches_edit');
	}
}